package com.swx.identityservice.dtos.scbpuser;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Column;

@Data
@ApiModel("编辑用户Dto")
public class UpdateUserInputDto {

    @ApiModelProperty("用户Id")
    private Integer id;

    @ApiModelProperty("用户名")
    @NotEmpty(message = "不能为空")
    private String username;

    @ApiModelProperty("登录别名")
    @NotEmpty(message = "不能为空")
    private String account;

    @Column(name = "RoleIds")
    private Integer[] roleids;

    @ApiModelProperty("联系电话")
    private String phonenumber;

    @ApiModelProperty("邮箱")
    @Email
    private String email;

    @Column(name = "DeptIds")
    private Integer[] deptids;

//    @Transient
//    private Integer unit;

    @ApiModelProperty("身份证、军官证号码")
    @NotEmpty(message = "不能为空")
    private String idnumber;

    @ApiModelProperty("是否是正式员工")
    private Boolean isinformal;

    @ApiModelProperty("工作证号")
    @NotEmpty(message = "不能为空")
    private String worknum;
}
